package com.ciaojian.core.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @author oxin
 */
@TableName("d_exchange")
@Data
public class Exchange extends Model<Exchange> {

    @TableId(type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("兑换计划ID")
    private Integer planId;

    @ApiModelProperty("兑换码")
    private String code;

    @ApiModelProperty("状态 0未兑换 1已兑换")
    private Integer status;

    @ApiModelProperty("领取用户")
    private Integer userId;

    @ApiModelProperty("过期时间")
    private Date expiredTime;

    private Date addTime;

    private Date updateTime;
}
